/*
 * @Description:动物类的测试类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-03-07 09:29:05
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-03-07 09:29:07
 */
public class AnimalTest {
  public static void main(String[] args) {
    Animal a = new Animal();
    a.eat();
    a.sleep();
    Cat c = new Cat();
    c.eat();
    c.sleep();
    Dog d = new Dog();
    d.eat();
    d.sleep();
  }

}